import {Button,Divider} from 'antd';
import {History} from 'history/index';
interface BackButtonProps{    
    show: boolean,
    history:History
}
export default function BackButton<a> ({show,history}:BackButtonProps)
{
    const goBack = (
        <div>
             <Button onClick={() => { history.goBack() }}>返回上一页</Button>
             <Divider></Divider>
        </div>
    );
    return show?goBack:<div></div>;
}